import request from '@/router/axios';
import config from '@/config/website'
//列表
export const marketActivitiesList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/hg_sale/saleActivity/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}


//新建
export const marketActivitiesAdd = (data) => {
    return request({
        url: '/api/blade-sale/hg_sale/saleActivity/save',
        method: 'post',
        data
    })
}
//修改
export const marketActivitiesUpdate = (data) => {
    return request({
        url: '/api/blade-sale/hg_sale/saleActivity/update',
        method: 'post',
        data
    })
}
//查看
export const marketActivitiesView = (id) => {
    return request({
        url: '/api/blade-sale/hg_sale/saleActivity/detail',
        method: 'get',
        params: {
            id
        }
    })
}

//删除
export const marketActivitiesDel = (ids) => {
    return request({
        url: '/api/blade-sale/hg_sale/saleActivity/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
